package main

import (
	"fmt"

	"gitee.com/kobeyyf/local_service/apis"
	"gitee.com/kobeyyf/local_service/handler"
)

func main() {
	h, err := handler.NewHandler()
	if err != nil {
		fmt.Println("初始化服务失败")
		fmt.Println(err)
		return
	}

	h.AddOneHandlerS("/http_nothing", &apis.HttpNothing{})
	h.AddOneHandlerS(apis.PATH_FILESERVER, &apis.FileServer{})

	err = h.Run()
	if err != nil {
		fmt.Println(err)
	}
}
